package com.baozun.houji.order.model.bean

import java.io.Serializable

/**
 * @Title：退款信息model
 * @Description：
 * @Author：xing.luo
 * @Since：2022/11/20
 * @Version：1.0.0
 */
open class AfterSaleInfoBean(
    var after_sale_no: String = "", //
    var after_sale_type: Int? = 0, //
    var after_sale_status: Int? = 0, //
    var after_sale_status_name: String? = "", //
    var after_sale_reason: String? = "",
    var after_sale_reason_desc: String? = "", //
    var after_sale_desc: String? = "", //=
    var audit_expire_time: Long = 0, //审核时间，收货审核时间：s
    var delivery_expire_time: Long = 0, //用户寄回时间倒计时：s
    var refund_amount: String? = "", //=
    var apply_time: String? = "", //=
    var refund_points: String? = "", //余额返还
    var points: String? = "",         //   要扣除的余额
    var seller_name: String? = "", //退货姓名
    var seller_address: String? = "",
    var seller_mobile: String? = "",
    var after_sale_status_desc: String? = "", //等待买家寄回商品
    var refuse_reason_desc: String? = "",//拒绝原因
    var audit_time: String? = "", //商家处理时间
    var delivery_time: String? = "", //提交物流时间
    var finish_time: String? = "", //处理时间


) : Serializable {

    fun receiveName(): String {
        return "收货人：$seller_name $seller_mobile"
    }

    fun showReturnPoint(): Boolean {
        return points != null && points != "0.00" && points != "0" && points != ""
    }

    fun showRefundPoint(): Boolean {
        return refund_points != null && refund_points != "0.00" && refund_points != "0" && refund_points != ""
    }

}